import axios from './request'
import conf from './apiConf'

// 宫格渲染
export const addProductType = params => {
  return axios.get(conf.GetProductType, params)
}
// 轮播图
export const GetOutPlay = params => {
  return axios.get(conf.GetOutPlay, params)
}
// 商品详情
export const addProduct = params => {
  return axios.post(conf.addProduct, params)
}
// 商品图片
export const addProductImg = params => {
  return axios.post(conf.addProductImg, params)
}
// 拿到首页商品 75个产品
export const GetProductHome = params => {
  return axios.get(conf.GetProductHome, params)
}
// 根据图标获取对应类别的产品
export const getProductBuyType = id => {
  return axios.get(conf.getProductBuyType + id)
}
// 根据内容获取对应类别的产品
export const Content = id => {
  return axios.get(conf.searchProductBuyContent + id)
}
